import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueCookie from 'vue-cookie'
import './utils/directives.js'
// import './element-ui'
// import './element-ui-theme'
import './assets/css/common.css'
import './assets/scss/index.scss'
import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios
import { isAuth } from '@/utils'
import VueClipboard from 'vue-clipboard2'
import dict from './components/Dict'
import echarts from 'echarts'

Vue.use(VueClipboard)
Vue.use(VueCookie)

Vue.config.productionTip = false
Vue.config.devtools = true

// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
Vue.prototype.isAuth = isAuth     // 权限方法
Vue.prototype.$echarts = echarts
Vue.prototype.dict = dict
//Vue.prototype.cron = cron

//数据字典 下拉框数据字典 表格数据字典
import {getSelectDict , getTableList, getDownload } from '@/utils/table'
Vue.prototype.getSelectDict = getSelectDict
Vue.prototype.getTableList = getTableList
Vue.prototype.getDownload = getDownload

moment.locale('zh-cn');
Vue.prototype.$moment = moment; //时间处理

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
